import request from '../utils/bsinRequest';

// 添加编排服务
export const OrchestrationAdd = (paramsOne: any) => {
  return request('/add', {
    serviceName: 'ChoreographyServiceService',
    methodName: 'add',
    bizParams: {
      ...paramsOne,
    },
  });
};

// 删除编排服务
export const OrchestrationDelete = (paramsOne: any) => {
  return request('/Delete', {
    serviceName: 'ChoreographyServiceService',
    methodName: 'delete',
    bizParams: {
      ...paramsOne,
    },
  });
};

// 编辑编排服务
export const OrchestrationEdit = (paramsOne: any) => {
  return request('/edit', {
    serviceName: 'ChoreographyServiceService',
    methodName: 'edit',
    bizParams: {
      ...paramsOne,
    },
  });
};

// 编排服务列表
export const OrchestrationList = (paramsOne: any, paramsTwo: any) => {
  return request('/List', {
    serviceName: 'ChoreographyServiceService',
    methodName: 'getListByPage',
    bizParams: {
      ...paramsOne,
    },
    pagination: {
      ...paramsTwo,
    },
  });
};

// 添加编排服务
export const OrchestrationView = (paramsOne: any) => {
  return request('/View', {
    serviceName: 'ChoreographyServiceService',
    methodName: 'getChoreographyServiceById',
    bizParams: {
      ...paramsOne,
    },
  });
};
